#include <iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
    int a[]={1,2,4,3,5,6};
    int b[]={2,3,1};
    vector<int> v1(a,a+6),v2(b,b+3),v3;
    vector<int>::iterator iter;
    //你的代码将嵌在这里
    v3.resize(v1.size()+v2.size());
    merge(v1.begin(),v1.end(),v2.begin(),v2.end(),v3.begin());
    sort(v3.begin(),v3.end());


    for(iter=v3.begin();iter!=v3.end();iter++)
        cout<<*iter<<"\t";
    cout<<endl;

    return 0;

}